﻿package mortal.game.view.Title.renderer
{
    import com.mui.controls.*;
    import mortal.common.global.*;
    import mortal.game.view.Title.data.*;
    import mortal.game.view.common.*;

    public class TitleAttrListCellRenderer extends GCellRenderer
    {
        private var _attrName:GTextFiled;
        private var _attrValue:GTextFiled;
        private var _attrData:TitleAttrData;

        public function TitleAttrListCellRenderer()
        {
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._attrName = UIFactory.gTextField("", 0, 0, 46, 20, this, GlobalStyle.textFormatAnjin);
            this._attrValue = UIFactory.gTextField("", 48, 0, 65, 20, this, GlobalStyle.textFormatBai);
            return;
        }// end function

        override public function set data(param1:Object) : void
        {
            super.data = param1;
            this._attrData = param1 as TitleAttrData;
            if (this._attrData)
            {
                this._attrName.text = this._attrData.attrName;
                this._attrValue.text = this._attrData.attrValue + "";
            }
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl();
            this._attrName.dispose();
            this._attrValue.dispose();
            this._attrName = null;
            this._attrValue = null;
            this._attrData = null;
            return;
        }// end function

    }
}
